package com.example.cabbage;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		Intent intent1 = new Intent(getApplicationContext(), CheckInView.class);
		Intent intent2 = new Intent(getApplicationContext(), CheckInView2.class);
		Intent intent3 = new Intent(getApplicationContext(), CheckInView3.class);
		menu.add("ConnorRox");
		menu.add("AlexDoesNotRocx");
		menu.add("Three");
		menu.getItem(0).setIntent(intent1);
		menu.getItem(1).setIntent(intent2);
		menu.getItem(2).setIntent(intent3);
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}

}
